<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    exclude-result-prefixes="xs"
    version="2.0">
    
    <xsl:output encoding="UTF-8" indent="yes" method="xml"/>
    
    <xsl:template match="/">
        <xsl:apply-templates></xsl:apply-templates>
    </xsl:template>
    
    <xsl:template match="@*|*|processing-instruction()|comment()">
        <xsl:copy>
            <xsl:apply-templates select="@*|*|text()|processing-instruction()|comment()"/>
        </xsl:copy>
    </xsl:template>
    
    <xsl:template match="element()/text()">
        
        <xsl:variable name="noun" select="'Bleblamilalnennokezifatoriumspannacottazertifikat'"/>
        <xsl:variable name="adjective" select="'bolbilemarkaterpimarenstenkanteratosterapoll'"/>
        
        <xsl:for-each select="tokenize(., ' ')">
            <xsl:choose>
                <xsl:when test="matches(substring(., 1, 1), '^[A-Z]')">
                    <xsl:value-of select="concat(substring($noun, 1, string-length(.) ), ' ')"/>    
                </xsl:when>
                <xsl:when test="matches(substring(., 1, 1), '^[a-z]')">
                    <xsl:value-of select="concat(substring($adjective, 1, string-length(.)), ' ')"/>    
                </xsl:when>
                <xsl:when test="matches(substring(., 1, 1), '[0-9]')">
                    <xsl:value-of select="concat(., ' ')"/>    
                </xsl:when>
            </xsl:choose>
        </xsl:for-each>
    </xsl:template>
    
</xsl:stylesheet>